package org.dromara.crawler.mongo.mongoservice.impl;

import com.mongoplus.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.dromara.crawler.mongo.mongodomain.SemanticExtraction;
import org.dromara.crawler.mongo.mongoservice.SemanticExtractionService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class SemanticExtractionServiceImpl extends ServiceImpl<SemanticExtraction> implements SemanticExtractionService {




    @Override
    public List<SemanticExtraction> getAll(String eventName) {
        return this.lambdaQuery().eq(SemanticExtraction::getEventName,eventName).list();
    }
}
